package com.hcinfos.gsoo.json;

import java.util.List;

import org.codehaus.jackson.type.TypeReference;
import org.json.JSONObject;

import com.hcinfos.gsoo.enity.Area;
import com.hcinfos.gsoo.enity.ViewSuppDetail;
import com.hcinfos.gsoo.util.LogUtil;

public class CityJson extends BaseJson {
	public static List<Area> getCityListByJson(String result) throws Exception {

		JSONObject obj = new JSONObject(result);
		String arrayStr = obj.getString("rows");
		List<Area> list = objectMapper.readValue(arrayStr,
				new TypeReference<List<Area>>() {
				});
		LogUtil.d("wxf", "size:" + list.size());
		return list;
	}
}
